package cn.ad.model;

import cn.ad.enumration.AdFormat;
import cn.ad.entity.Creative;
import org.apache.ibatis.type.Alias;

/**
 * 查询时返回的创意对象模型
 * 
 * @author yujuan.zhang
 * @from 2016-06-15
 * @since V1.0
 *
 */
@Alias("creativeListModel")
public class CreativeListModel extends Creative {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1295944187366216125L;

	/**
	 * 创意列表查询时，同时返回广告形式的名称
	 */
	private String adFormatName;
	
	/**
	 * 着陆页地址，（绝对URL路径）
	 */
	private String targetUrl;
	
	/**
	 * 推广的app名称
	 */
	private String appName;
	
	/**
	 * 在APP Store中的ID，主要用于IOS
	 */
	private String storeId;
	
	/**
	 * APP类型，0 android 1 ios 2 windows
	 */
	private Integer appType;
	
	/**
	 * APP下载地址
	 */
	private String downloadUrl;
	
	/**
	 * app分类标识，对应app_classes.id
	 */
	private Integer classesId;
	
	/**
	 * app安装包大小，单位KB
	 */
	private Integer appVolume;
	
	/**
	 * 包名，主要针对android
	 */
	private String apkName;

	public String getAdFormatName() {
		return AdFormat.forValue(getAdFormat());
	}

	public void setAdFormatName(String adFormatName) {
		this.adFormatName = adFormatName;
	}

	public String getTargetUrl() {
		return targetUrl;
	}

	public void setTargetUrl(String targetUrl) {
		this.targetUrl = targetUrl;
	}

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public String getStoreId() {
		return storeId;
	}

	public void setStoreId(String storeId) {
		this.storeId = storeId;
	}

	public Integer getAppType() {
		return appType;
	}

	public void setAppType(Integer appType) {
		this.appType = appType;
	}

	public String getDownloadUrl() {
		return downloadUrl;
	}

	public void setDownloadUrl(String downloadUrl) {
		this.downloadUrl = downloadUrl;
	}

	public Integer getClassesId() {
		return classesId;
	}

	public void setClassesId(Integer classesId) {
		this.classesId = classesId;
	}

	public Integer getAppVolume() {
		return appVolume;
	}

	public void setAppVolume(Integer appVolume) {
		this.appVolume = appVolume;
	}

	public String getApkName() {
		return apkName;
	}

	public void setApkName(String apkName) {
		this.apkName = apkName;
	}
}
